﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Mobile_New_OrderDetail : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string orderid = HttpContext.Current.Request["orderid"].ToString();
        if (!string.IsNullOrEmpty(orderid))
        {
            Chain.BLL.MicroWebsiteOrderLog detailbll = new Chain.BLL.MicroWebsiteOrderLog();
            DataTable dt = detailbll.GetList(" MicroOrderID="+orderid).Tables[0];
            rptOrderDetail.DataSource = dt;
            rptOrderDetail.DataBind();
            this.shangpin_price.InnerText = this.zhifu_price.InnerText ="¥"+Convert.ToDecimal(dt.Rows[0]["MicroOrderTotalMoney"]).ToString("0.00");


            Chain.BLL.MicroWebsiteOrderLogDetail Goodsbll = new Chain.BLL.MicroWebsiteOrderLogDetail();
            DataTable dt2 = Goodsbll.GetOrderDetail(" MicroOrderID=" + orderid).Tables[0];
            rptGoods.DataSource = dt2;
            rptGoods.DataBind();
        }
        else
        {

        }
    }
}